package cn.abcsys.cloud.devops.web.ldap;

//TODO 修改为更明确的类名：LdapFactory
//  
public class Factory {
    private static LdapAnon anonInstance;
    public synchronized static LdapAnon createAnonInstance() {
        if (anonInstance == null) {
            try {
            	anonInstance = (LdapAnon) Class.forName("cn.abcsys.cloud.devops.web.ldap.LdapAnonImpl").newInstance();
            } catch (Exception e) {
                throw new RuntimeException(e);
            } 
        }
        return anonInstance;
    }

}
